package com.xiaoshuidi.cloud.module.member.pojo.topics;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@TableName(value = "member_topics_post", autoResultMap = true)
@KeySequence("member_topics_post_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MemberTopicsPost extends TenantBaseDO {
    private static final long serialVersionUID = 7035154131608734862L;

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "话题ID")
    private Long topicId;

    @Schema(description = "参与内容")
    private String content;

    @Schema(description = "附带图片")
    private String images;

    @Schema(description = "点赞数")
    private Integer thumbs;

    @Schema(description = "审核人")
    private String reviewer;

    @Schema(description = "审核时间")
    private LocalDateTime reviewTime;

    @Schema(description = "审核状态0-待审核,1-审核通过,2-审核不通过")
    private Integer reviewStatus;

    @Schema(description = "0-不隐藏,1-隐藏")
    private Boolean hide;

    @Schema(description = "是否推荐0-不推荐,1-推荐")
    private Boolean recommend;
}
